package com.service.scheduler.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;

import com.service.cache.CacheManager;
import com.service.other.Logger;

public class PointTimesRefreshJob implements Job {

	/**
	 * Job需要一个公有的构造函数，否则Factory无法构建
	 */
	public PointTimesRefreshJob() {

	}

	@Override
	public void execute(JobExecutionContext context) {
		try {
			/*JobKey jk = context.getJobDetail().getKey();
			String jobName = jk.getName();
			String jobGroup = jk.getGroup();*/
			//Logger.println("启动任务 [" + jobGroup + "].[" + jobName + "]");
			CacheManager.instance().canDoPoint = true;
			//Logger.println("任务执行完毕，下次启动时间：" + context.getNextFireTime());
		} catch (Exception e) {
			Logger.err(e);
		}
	}
}
